<template>
<div class="test-container">
    <ImageLoader 
	src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?fit=crop&crop=entropy&w=3456&h=2304"
    placeholder="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?w=100"
    @everythingLoaded="handleLoaded"
    />
</div>
</template>

<script>
import ImageLoader from './'
export default {
    components:{
        ImageLoader
    },
    methods:{
        handleLoaded(){//图片加载完成后的处理
            console.log('loaded');
        }
    }
}

</script>

<style scope>
.test-container{
    width: 1400px;
    height: 800px;
    border: 2px solid #000000;
    margin: 0 auto;
}
</style>